home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 271_02 / gtodfunc.doc < prev    next >
Text File  |  1987-08-18  |  797b  |  39 lines

  1.  
  2.  
  3.         NAME
  4.                 gtodsub -- Get time of day to file pointer
  5.                 gtodstr -- Get time of day to a string
  6.  
  7.         SYNOPSIS
  8.                 void gtodsub(fp);
  9.                 FILE *fp;
  10.                 void gtodstr(str);
  11.                 char *str;
  12.  
  13.  
  14.         DESCRIPTION
  15.         This function reads the system date and time and sends them in a
  16.         formatted string to the specified output channel, or to a string.
  17.  
  18.  
  19.         EXAMPLE
  20.  
  21.                gtodsub(stdout);   /* send date/time to stdout */
  22.  
  23.                char string[30];
  24.                gtodstr(string);
  25.                printf("date and time are %s\n", string);  /* same result */
  26.             
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMTCx.LIB for the Turbo-C Compiler.
  39.